from django.urls import path,include
from app.views import StudentViews,ClsViews
from app.stu_views import StuModelView
urlpatterns = [
    # path('indexs/',ClsViews.as_view()),
    path('indexs/<str:name>/',ClsViews.as_view()),
    path('students/',StudentViews.as_view()),
    path('stu/',StuModelView.as_view({'get':'list','post':'create'})),
    path('stu/<int:id>',StuModelView.as_view({'get':'retrieve','put':'update','delete':'destroy'}))

]
# mixins.CreateModelMixin,
#                    mixins.RetrieveModelMixin,
#                    mixins.UpdateModelMixin,
#                    mixins.DestroyModelMixin,
#                    mixins.ListModelMixin,
#                    GenericViewSet):